package com.k2data.k2app.domain.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.util.List;

/**
 * @author lidong9144@163.com 17-3-16.
 */
@Data
@Table(name = "monitor_variable")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MonitorVariable implements Serializable {

    @Transient
    private static final long serialVersionUID = 6482335470091869751L;

    @JsonIgnore
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;
    private Long monitorPointId;
    private String variableName;
    private String variableNameEn;
    private String variableType;
    private String unit;
    private String kmxVariableName;
    private String kmxVariableNameEn;
    private String kmxVariableType;
    private String kmxUnit;
    private String standardValue;
    private Double frequency;
    private Double max;
    private Double min;
    private Integer state;
    private Integer type;
    private String category;
    @JsonIgnore
    private LocalDateTime createTime;
    @JsonIgnore
    private LocalDateTime updateTime;

    @Transient
    private Integer channelId;
    @Transient
    private String sensorName;
    @Transient
    private String sensorType;
    @Transient
    private String sensorNameEn;

    // 关联表
    @JsonIgnore
    @Transient
    private List<MonitorLimitValue> limits;
    // 关联表
    @JsonIgnore
    @Transient
    private MonitorPoint point;

}
